const TokenKey = 'access_token'
const UserKey = 'userid'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}
//存取userid
export function getUser() {
  return uni.getStorageSync(UserKey)
}

export function setUser(userid) {
  return uni.setStorageSync(UserKey, userid)
}

export function removeUser() {
  return uni.removeStorageSync(UserKey)
}
